<html>
<head>
  <link rel='stylesheet' href="../styles_blog.css" type='text/css'>
  <script type="text/javascript" src="../../../bibliotheques/jquery.js"></script>
  <script type="text/javascript" src="../../../bibliotheques/interface.js"></script>
  <script type="text/javascript" src="../../../bibliotheques/firebug/firebugx.js"></script>
  <script type="text/javascript" src="../../js/guiguy.pack.js"></script>
  <script type="text/javascript">    
    function DisplayMessage(text) {alert(text);}
  </script>

</head>
<body>
    <div id="blogContainer" class="load_on_start" dataSource="http://dstest.ohmydata.org/web/fa_dev.php/generic_objects" dataObject="BlogEntry" defaultView="ListView">
      <div>
        <a class="button" href="#" onClick="this.blur();"><span onClick="insertEmpty(this,'form')">New entry</span></a>
        <a class="button" href="#" onClick="this.blur();"><span onClick="GUIGuyApi.refreshList(this)">Refresh</span></a>
      </div>
      <div class="blog_entry" id="pattern_BlogEntry_ListView" style="display:none;">
        <h2 class="blog_title title"></h2>
        <p class="post_date date"></p>
        <p class="signature_list">Published by : <span class="poster"></span></p>
    	<a href="#" onclick="goToGUIView(this,'DetailedView','ListView')">>>Read it</a>
      </div>
      <div class="blog_entry" id="pattern_BlogEntry_DetailedView" style="display:none;">
        <h2 class="blog_title title"></h2>
        <p class="post_date date"></p>
        <p class="entry_content content"></p>
        <p class="signature">Published by : <span class="poster"></span></p>
    	<a href="#" onclick="goToGUIView(this,'ListView')">>>Back to list</a>
      </div>      
      <div class="blog_entry" id="pattern_BlogEntry_form" style="display:none;">
      <form>
        Title : <input type="text" class="blog_title title" name="title" dataType="Text"><br>
        Date : <input type="text" class="post_date date" name="date" dataType="Text"><br>
        Content : <input type="text" class="entry_content content" name="content" dataType="Text"><br>
        Published by : <input type="text" class="poster" name="poster" dataType="Text"><br>
        <a href="#" onclick="applyEditGUI(this,'ListView')">Save</a>
    	<form>
      </div>      
    </div>
</body>
</html>